package com.lihui.lesson01;

import java.io.File;

/**
 * 功能描述
 *
 * @author wileda
 * @date 2023/02/11  11:18
 */
public class Demo01_Constructor {
    public static void main(String[] args) {
        File file = new File("d:/temp");
        System.out.println(file);

        File file1 = new File(file,"test\\hello.txt");
        System.out.println(file1);

        File file2 = new File("d:\\temp\\test\\hello.txt");
        System.out.println(file2);

        File file3 = new File("d:/temp","test/hello.txt");
        System.out.println(file3);
    }
}
